package com.supermali.system;

import com.supermali.creater.GameStarter;
import com.supermali.util.FrameRate;

import java.awt.*;

/**
 * 系统的状态
 * */
public abstract class AbstractSystem {

    GameStarter gameStarter;
    SystemHelper systemHelper;

    public AbstractSystem(GameStarter gameStarter,SystemHelper systemHelper) {
        this.gameStarter = gameStarter;
        this.systemHelper = systemHelper;
    }

    /**
     * 执行程序
     * */
    public abstract void exec(Graphics g, FrameRate frameRate);


    public SystemHelper getSystemHelper() {
        return systemHelper;
    }


}
